package com.tlgen.modules.dept.service.mapper;

import com.tlgen.common.base.BaseMapper;
import com.tlgen.modules.dept.domain.Subject;
import com.tlgen.modules.dept.service.dto.SubjectDto;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;

/**功能描述：科室实体映射
 */
@Mapper(componentModel = "spring", unmappedTargetPolicy = ReportingPolicy.IGNORE)//未映射的目标属性被忽略
public interface SubjectMapper extends BaseMapper<SubjectDto, Subject> {
    SubjectDto toDto(String name);
}
